package kr.hkit.powerjava.chapter08;

class Box {
	private int width;			//가로
	private int length;			//세로
	private int height;			//높이
	public Box(int width, int length, int height) {
		this.width = width;
		this.length = length;
		this.height = height;
	}
	public Box() {}
	
	public int getWidth() {
		return width;
	}
	public void setWidth(int width) {
		this.width = width;
	}
	public int getLength() {
		return length;
	}
	public void setLength(int length) {
		this.length = length;
	}
	public int getHeight() {
		return height;
	}
	public void setHeight(int height) {
		this.height = height;
	}

	public int getVolume(){
		int vol = width * length * height;
		return vol;
	}

	public void print(){
		System.out.println("width=" + width + " length=" + length + " height=" + height);
	}
}
